package com.ruoyi.machine.base.wearing.mapper;

import com.ruoyi.machine.base.wearing.domain.WearingPart;
import com.ruoyi.machine.base.wearing.domain.WearingPartCond;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WearingPartMapper {
    /**
     * 查找易损件
     * @param cond
     * @return
     */
    public List<WearingPart> selectWearingPartList(WearingPartCond cond);

    /**
     * 根据名称和规格查找易损件
     * @return
     */
    public WearingPart selectWearingPartByName(@Param("wearingPartName")String wearingPartName, @Param("wearingPartSpecification")String wearingPartSpecification);

    /**
     * 添加易损件
     * @param wearingPart
     * @return
     */
    public int insertWearingPart(WearingPart wearingPart);

    /**
     * 更新易损件
     * @param wearingPart
     * @return
     */
    public int updateWearingPart(WearingPart wearingPart);

    /**
     * 删除易损件
     * 仅修改删除标志
     * @param wearingPart
     * @return
     */
    public int updateWearingPartDeleteFlag(WearingPart wearingPart);
}
